/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_rutaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final StringExpression ru_id_ruta;
	public final StringExpression ru_turno;
	public final DateExpression ru_fecha_creacion;
	public final StringExpression ru_observacion;
	
	public Tbv_rutaDetachedCriteria() {
		super(orm.Tbv_ruta.class, orm.Tbv_rutaCriteria.class);
		ru_id_ruta = new StringExpression("ru_id_ruta", this.getDetachedCriteria());
		ru_turno = new StringExpression("ru_turno", this.getDetachedCriteria());
		ru_fecha_creacion = new DateExpression("ru_fecha_creacion", this.getDetachedCriteria());
		ru_observacion = new StringExpression("ru_observacion", this.getDetachedCriteria());
	}
	
	public Tbv_rutaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_rutaCriteria.class);
		ru_id_ruta = new StringExpression("ru_id_ruta", this.getDetachedCriteria());
		ru_turno = new StringExpression("ru_turno", this.getDetachedCriteria());
		ru_fecha_creacion = new DateExpression("ru_fecha_creacion", this.getDetachedCriteria());
		ru_observacion = new StringExpression("ru_observacion", this.getDetachedCriteria());
	}
	
	public Tbv_usuarioDetachedCriteria createTbv_usuarious_id_usuarioCriteria() {
		return new Tbv_usuarioDetachedCriteria(createCriteria("tbv_usuarious_id_usuario"));
	}
	
	public Tbv_vehiculosDetachedCriteria createTbv_vehiculosve_id_vehiculoCriteria() {
		return new Tbv_vehiculosDetachedCriteria(createCriteria("tbv_vehiculosve_id_vehiculo"));
	}
	
	public Tbv_maquinaDetachedCriteria createTbv_maquinaCriteria() {
		return new Tbv_maquinaDetachedCriteria(createCriteria("ORM_Tbv_maquina"));
	}
	
	public Tbv_ruta_programadaDetachedCriteria createTbv_ruta_programadaCriteria() {
		return new Tbv_ruta_programadaDetachedCriteria(createCriteria("ORM_Tbv_ruta_programada"));
	}
	
	public Tbv_ruta uniqueTbv_ruta(PersistentSession session) {
		return (Tbv_ruta) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_ruta[] listTbv_ruta(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_ruta[]) list.toArray(new Tbv_ruta[list.size()]);
	}
}

